#ifndef _LIGHTING_H
#define _LIGHTING_H


#define	TRISTAR_I2C_ADDR		0x34

#define TRISTAR_DXCTRL							0x01
#define TRISTAR_ACC_CTRL						0x02
#define TRISTAR_DCP_CTRL						0x03
#define TRISTAR_MISC_CTRL						0x04
#define TRISTAR_DIG_ID							0x06
#define TRISTAR_FAULT_ENABLE				0x09
#define TRISTAR_EVENT1							0x0A
#define TRISTAR_STATUS1							0x0B
#define TRISTAR_STATUS0							0x0C
#define TRISTAR_EVENT0							0x0D
#define TRISTAR_MASK								0x0E
#define TRISTAR_REV									0x0F
#define TRISTAR_DP1_DP2_UART_CTL		0x10
#define TRISTAR_AUTH_CTRL0					0x11
#define TRISTAR_ACC_FAULT_STATUS		0x12
#define TRISTAR_ACC_FAULT_CTRL0			0x13
#define TRISTAR_ACC_FAULT_CTRL1			0x14
#define TRISTAR_MISC_IO							0x1D
#define TRISTAR_CON_DET_SMPL				0x1E
#define TRISTAR_RD_FIFO							0x1F
#define TRISTAR_FIFO								0x20			//64 registers for random address
#define TRISTAR_FIFO_CTRL1					0x60
#define TRISTAR_FIFO_CTRL0					0x61
#define TRISTAR_FIFO_FILL_STATUS		0x62


void InitTriStar(void);


#endif	//_LIGHTING_H
